import {createRouter, createWebHashHistory} from 'vue-router'
import Home from '../views/Home.vue'
import Chat from '../views/chat.vue'

const routes = [
     {
    path:'/',
    component: Home
   },{
    path:'/chat',
    component: Chat,
   }
] 
const router = createRouter({
    history: createWebHashHistory(),
    routes: routes,
})

// 导出
export default router